package online.yysh.charging.wxapi;

import okhttp3.Callback;
import okhttp3.MediaType;
import okhttp3.OkHttpClient;
import okhttp3.Request;

public class WXHttpUtil {

    private static final MediaType JSON = MediaType.parse("application/json");
    /**
     * 发送token
     */
    public static void sendToken(String token, Callback callback){
        OkHttpClient client = new OkHttpClient();
        Request request = new Request.Builder().url(token).build();
        client.newCall(request).enqueue(callback);
    }

    public static void getWXMessage(String user_info_url,Callback callback){
        OkHttpClient client = new OkHttpClient();
        Request request = new Request.Builder().url(user_info_url).build();
        client.newCall(request).enqueue(callback);
    }

}
